/**
 * Created by Administrator on 2018/4/2.
 */
var table;
$(function () {
    table = $('#data_list').DataTable({
        "ajax": {
            "url": $("#basePath").val() + "admin/chooseInfo/list",
            "type": "POST",
            "data": function (d) {
                return {
                    "bno": $("#query_bno").val(),
                    "bname": $("#query_bname").val(),
                    "sno": $("#query_sno").val(),
                    "sname": $("#query_sname").val()
                };
            }
        },
        "columns": [
            {"data": "bno"},
            {"data": "bname"},
            {"data": "teacher"},
            {"data": "ctime"},
            {"data": "sno"},
            {"data": "sname"},
        ],
        columnDefs: [

        ]
    });
});

function query() {
    table.ajax.reload();
}